package com.chenken.single;

import com.chenken.List;

public class Main {

	public static void main(String[] args) {
		List<Integer> list = new SingleLinkedList<Integer>();
//		list.remove(0);
		list.add(20);
		list.add(0,10);
		list.add(30);
		list.add(list.size(),40);
		
		System.out.println(list);//[10,20,30,40]
		
		list.remove(1);//[10,30,40]
		System.out.println(list);
	}
	
}
